package com.zhanghe.study.java8.ddl1;

import jnr.ffi.LibraryLoader;
import jnr.ffi.Pointer;
import jnr.ffi.annotations.In;
import jnr.ffi.annotations.Out;

public interface DetTclineLibrary {

    DetTclineLibrary INSTANCE = LibraryLoader.create(DetTclineLibrary.class).load("libdet_tcline");

    int CreateDetector();

    int DetTCLine(
        @In int detid,
        @In Pointer in_jpg, // 输入的JPEG数据
        @Out Pointer tclineInfosSize, // 输出的tclineInfos大小
        @Out Pointer tclineInfos, // 输出的tclineInfos
        @Out Pointer outJpgSize, // 输出的outJpg大小
        @Out Pointer outJpg // 输出的outJpg
    );

    int ReleaseDetector(@In int detid);
}